package org.qs.webservice.dao.user;


import org.apache.ibatis.annotations.Param;
import org.qs.webservice.domain.UsSubscribe;
import org.springframework.stereotype.Component;
/**
 * 自动订购
 * @author xusaike
 *
 */
@Component
public interface UsSubscribeMapper {
	/**
	 * 添加订购信息
	 * @param usSubscribeAuto
	 * @return
	 */
	public int addBookSubscribe(UsSubscribe usSubscribe);
	/**
	 * 获取订购记录
	 * @param user_id
	 * @param chapter_id
	 * @return
	 */
	public UsSubscribe getUsSubscribeById(@Param("user_id")Long user_id,@Param("book_id")int book_id,@Param("chapter_id")int chapter_id);
	
}